function  out = get(varargin)

    j = 1;   
    k = 1;
    for i = 1:length(varargin)
        if isa(varargin{i}, 'spectra')
            obj(j) = varargin{i};
            j = j+1;
        elseif isa(varargin{i}, 'char')
            option{k} = lower(varargin{i});
            k = k+1;
        end
    end
    k = k-1;
    j = j-1;
    
    f = datastruct();
    % Are we a mainfield or subfield?
    m = 1;
    for i = 1:j
        for l = 1:k
            any(strcmp(option{l},f.mainfield))
            if any(strcmp(option{l},f.mainfield))
                out{m} = obj.(option{l});
                m = m + 1;
            end
        end
    end
    
    if m == 2
        out=out{1};
    end
    
    
%     for i=1:length(obj)
% 
%         for j=1:length(option)
%             if isfield(objs,option{j})
%                 
%             end
%         end
%     end